<script type="text/javascript" src="./src/js/jquery.form.js"></script>
<script>
$(document).ready(function() {
	$('#ajaxuploadimg').click(function () {
		$('#uploadFile1').click();
    });
	$("#uploadFile1").change(function () { //选择文件 
        $("#myupload").ajaxSubmit({
            success: function (data) { //成功 
    			if(data != 1){
    				alert('上传出错了,请重新上传');
    			}else{
    				alert('上传成功');
    				location.reload();
    			}
            }
        });
    });
});
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;配置管理</span>
			<span style="float: right;">
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr>
		<td class="altbg1">上传apk</td>
		<td class="altbg2">
			<img id="ajaxuploadimg" src="./src/img/upload.png" />
		</td>
	</tr>
</table>

<div style="display:none;">
    <form id="myupload" action="./" method="post" enctype="multipart/form-data">
        <input type="file" id="uploadFile1" name="file" runat="server" />
        <input type="hidden" name="controller" value="configs" />
        <input type="hidden" name="action" value="uploadapk" />
        <input type="hidden" name="doupload" value="1" />
    </form>
</div>

